package com.zstu.lvxiang.utils;

import org.apache.commons.codec.digest.DigestUtils;

/**
    md5加密工具类
 */
public class MD5Utils {
    private static final String SALT = "1a2b3c4d";

    public static String md5(String src) {
        return DigestUtils.md5Hex(src);
    }

    public static String inputPassToFromPass(String inputPass) {
        String str = SALT.charAt(0) + SALT.charAt(2) + inputPass + SALT.charAt(5) + SALT.charAt(4);
        return md5(str);
    }
}
